# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=lomiri-schemas
pkgver=0.1.4
pkgrel=1
pkgdesc="GSettings / AccountsService schema files for Lomiri"
arch="noarch"
url="https://gitlab.com/ubports/development/core/lomiri-schemas"
license="LGPL-2.1-or-later"
makedepends="
	cmake
	cmake-extras
	glib-dev
	intltool
	"
source="https://gitlab.com/ubports/development/core/lomiri-schemas/-/archive/$pkgver/lomiri-schemas-$pkgver.tar.gz
	0001-data-schemas-com.lomiri.Shell.gschema.xml.in-Add-log.patch
	"
options="!check" # No tests

build() {
	# Doesn't build with Ninja backend:
	#  ninja: multiple rules generate 'data/schemas/com.lomiri.Shell.gschema.xml'
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a77f3591c0e5e58683ecd94964b232db69d6eaf97623ca554c03f33c7711c1638372f9274608d77838c6228a46c8379953766124c4b85ca49987a3a6a77b0fa0  lomiri-schemas-0.1.4.tar.gz
ff1397970b31179a1c9538bf3d929f06d9667024df202ad50d2727cd91e0979e273d9ec77bff4a109c6e942ecc74dde60704843c19dd84a5fabf4aeb91abf239  0001-data-schemas-com.lomiri.Shell.gschema.xml.in-Add-log.patch
"
